﻿
using Wpf2.ViewModels;
namespace Wpf2.Models
{
    public class Unit : PropertyChangedBase
    {
        private int _unitId;
        private string _unitName ;
        private string _unitNote;

        public int UnitID
        {
            get { return _unitId; }
            set
            {
                if (_unitId == value) return;
                _unitId = value;
                OnPropertyChanged("unitID");
            }

        }

        public string UnitName
        {
            get { return _unitName; }
            set
            {
                if (_unitName != value)
                {
                    _unitName = value;
                    OnPropertyChanged("unitName");
                }
            }

        }

        public string UnitNote
        {
            get { return _unitNote; }
            set
            {
                if (_unitNote == value) return;
                _unitNote = value;
                OnPropertyChanged("unitNote");
            }

        }

    }
}
